package com.yangsen.register;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;

public class RegisterController extends Controller {

    private static final RegisterService srv = RegisterService.me;

    @Before(RegisterValidator.class)
    public void index(String username, String pwd) {
        renderJson(srv.register(username, pwd));
    }
}
